package com.example.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

@Data
@TableName("class_students")
public class ClassStudent {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long classId;            // 班级ID
    private Long studentId;          // 学生ID
    private LocalDateTime joinDate;  // 加入日期
    private String status;           // 状态: active, inactive, removed
    private String joinMethod;       // 加入方式: invitation, code, added_by_teacher
} 